package com.shitu.soulemo.rn;

import android.os.Bundle;

import com.shitu.base.net.model.User;
import com.shitu.base.utils.SP;

public class RNHelper {

    public static Bundle getBaseBundle(User user) {
        Bundle map = new Bundle();
        map.putInt("type", SP.get("type", 1));
//        base.putInt("type", 2);
        map.putString("aid", "require");
        map.putString("ap", "wifi");
        map.putString("channel", "01");
        map.putString("devicetype", "xiaomi");
        map.putString("hw", "1980*1280");
        map.putString("idfa", "12123");
        map.putString("imei", "354707046861623");
        map.putString("lg", "zh");
        map.putString("model", "xiaomi 5");
        map.putString("osid", "Android");
        map.putString("osv", "android5.1");
        map.putString("remoteip", "127.0.0.1");
        if (user != null) {
            map.putString("token", user.token);
            map.putString("mobile", user.mobile);
        }
        map.putString("ua", "Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_2 like Mac OS X; zh-cn) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5");
        map.putString("version", "1.0.0");
        return map;
    }
}
